import { shopRequest } from '@/utils/HttpRequest';

export function goodsByList() {
  let data = shopRequest.get<API.Result<API.Pagination>>('goods/list');
  return data;
}
export function goodsByListPrice(id: number) {
  let data = shopRequest.get<API.Result<API.Agent>>('goods/listPrice', { id });
  return data;
}
export function goodsEdit(params: API.Goods) {
  return shopRequest.post('goods/edit', params);
}

export function goodsInfo(id: number) {
  return shopRequest.get<API.Goods>('goods/info', { id });
}
